package com.itheima.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.itheima.domain.TbClueExcelVo;

import java.util.ArrayList;
import java.util.List;

public class EasyExcelListener extends AnalysisEventListener<TbClueExcelVo> {

    List<TbClueExcelVo>  addList = new ArrayList<>();

    @Override
    public void invoke(TbClueExcelVo tbClueExcelVo, AnalysisContext analysisContext) {
        addList.add(tbClueExcelVo);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
    }

    public List<TbClueExcelVo> getDatas(){

        return addList;
    }

    public void setDatas(List<TbClueExcelVo> datas){
        this.addList = datas;
    }
}
